﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class main : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        /*根据session变量adminUserName是否已经建立判断管理员是否登陆了系统,其他操作页面类似*/
        if (Session["adminUserName"] == null)
        {
            Response.Redirect("login.aspx");
        }
        this.Operator.Text = Session["adminUserName"].ToString();
        this.LoginTime.Text = System.DateTime.Now.ToString();
    }
}
